package com.hm.scala.senior

import scala.io.Source

object FileRead {

  def main(args: Array[String]): Unit = {

    val start = System.currentTimeMillis();
    
    var file = Source.fromFile("D:/tmp/insurance.log")
    //    println(file.mkString)
    file.getLines().foreach {
      line =>
        {
          println(Thread.currentThread().getName)
          println(line)
        }
    }
    System.out.println(System.currentTimeMillis() - start);

  }
}